<%@page import="cn.cdahua.basic.model.SystemContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="style.jsp"></jsp:include>
<style>
body {
	background-color: #FFF;
}
</style>
</head>
<body>
	<div class="table-responsive">
		<table class="table table-hover table-condensed table-bordered">
			<thead>
				<tr>
					<th class="title" width="20%">歌名</th>
					<th>点歌者</th>
					<th>留言信息</th>					
					<th>点歌时间</th>
					<th>反馈时间</th>
					<th>状态</th>
					<c:if test="${isStudent != true}">
						<th>操作</th>
					</c:if>
				</tr>
			</thead>
			<c:forEach items="${datas.datas }" var="t">
				<tr>
					<th class="title"><div>${t.name }</div></th>
					<th>${t.user.username }</th>
					<th>${t.message }</th>					
					<th>${t.createDate }</th>
					<th><c:if test="${t.playDate != null }">${t.playDate }</c:if>
						<c:if test="${t.playDate == null }">尚未审核</c:if></th>
					<th><c:if test="${t.status == 1 }">已通过</c:if> <c:if
							test="${t.status == 0 }">未通过</c:if></th>
					<c:if test="${isStudent != true}">
						<th>
							<a href="<%=request.getContextPath() %>/song/update/${t.id }">
								<button class="btn btn-default">修改</button>
							</a>&nbsp;
							<a href="<%=request.getContextPath() %>/song/delete/${t.id }">
								<button class="btn btn-danger">删除</button>
							</a>
						</th>
					</c:if>
				</tr>
			</c:forEach>
		</table>
	</div>
	<jsp:include page="pager.jsp"></jsp:include>
</body>
</html>